<include file="public@header"/>
</head>
<body>
<div class="layui-fluid">
    <form action="{:url('Nav/editPost')}" method="post" class="layui-form js-ajax-form">
        <div class="layui-card">
            <div class="layui-card-header">{:lang('ADMIN_NAV_EDIT')}</div>
            <div class="layui-card-body">
                <div class="layui-form-item">
                    <label class="layui-form-label">{:lang('NAME')}</label>
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="{$id}">
                        <input type="text" class="layui-input" name="name" value="{$name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">{:lang('REMARKS')}</label>
                    <div class="layui-input-block">
                        <textarea class="layui-textarea" name="remark" >{$remark}</textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">{:lang('MAIN_MENU')}</label>
                    <div class="layui-input-block">
                        <php>$strMainMenuChecked=$is_main?"checked":"";</php>
                        <input type="checkbox" name="is_main" value="1" title="" lay-skin="primary" {$strMainMenuChecked}> 
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <if condition="cmf_auth_check(cmf_get_current_admin_id(), 'admin/Nav/editPost')">
                            <button type="submit" class="layui-btn layui-btn-normal js-ajax-submit">{:lang("SAVE")}</button>
                        </if>
                        <a class="layui-btn layui-btn-primary" href="{:url('Nav/index')}">{:lang("BACK")}</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<include file="public@footer"/>
